package io.renren.modules.lanling.dao;

import io.renren.common.utils.Query;
import io.renren.modules.lanling.entity.ExamEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考试表
 *
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-11-02 15:25:16
 */
public interface ExamDao extends BaseMapper<ExamEntity> {
    List<ExamEntity> queryList(Query query);

    Integer queryTotal(Query query);

    void delExamRecordListByUser(@Param("subjectId") int subjectId, @Param("studentId") int studentId);

    void deleteByUserId(@Param("studentId") long studentId);
}
